<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      a {
        color: rgb(248, 4, 162);
      }

      /* span:nth-child(odd) {
        color: aqua;
      }
      span:nth-child(even) {
        color: blue;
      } */

      /* span:first-child {
        color: red;
      } */

      span:nth-of-type(odd) {
        color: red;
      }
      /* 先爱(love)后恨(hate) */
      /* 未访问 */
      a:link {
        color: red;
      }

      /* 访问过后 */
      a:visited {
        color: green;
      }
      /* 悬停 */
      a:hover {
        color: blue;
      }
      /* 点击 */
      a:active {
        color: yellow;
      }
    </style>
  </head>
  <body>
    111
    <span>span</span>
    <a href="###">超链接</a>

    <div>
      111
      <span>span1</span>
      <span>span2</span>
      <span>span3</span>
      <span>span4</span>
      <span>span5</span>
    </div>
  </body>
</html>
